// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import BasicLayout from '@/layouts/basic-layout';
import Setting from '@/setting';

const pre = 'stock_';

export default {
    path: `${Setting.roterPre}/stock/`,
    name: 'stock',
    header: 'stock',
    meta: {
        // 授权标识
        auth: ['admin-stock']
    },
    redirect: {
        name: `${pre}stockList`
    },
    component: BasicLayout,
    children: [
        {
            path: 'stock_list',
            name: `${pre}stock_list`,
            meta: {
                auth: ['admin-stock-list'],
                title: '库存列表'
            },
            component: () => import('@/pages/stock/stockList')
        },
		{
		    path: 'inbound_list',
		    name: `${pre}inbound_list`,
		    meta: {
		        auth: ['admin-stock-inbound-list'],
		        title: '入库'
		    },
		    component: () => import('@/pages/stock/inboundList')
		},
		{
		    path: 'freight_list',
		    name: `${pre}freightEdit`,
		    meta: {
		        auth: ['admin-stock-freight-list'],
		        title: '出库单'
		    },
		    component: () => import('@/pages/stock/freightList')
		},
		{
		    path: 'remaining_stock',
		    name: `${pre}freightEdit`,
		    meta: {
		        auth: ['admin-remaining-stock'],
		        title: '剩余库存'
		    },
		    component: () => import('@/pages/stock/remainingStock')
		},
    ]
};
